package com.ysz.gulimall.product.feign;

import com.ysz.common.to.SkuReductionTO;
import com.ysz.common.to.SpuBoundTo;
import com.ysz.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.PostConstruct;

/**
 * @author 杨圣志
 * @version 1.0
 * @@description: TODO
 * @date 2023/10/16 14:57
 */

@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    /**
     * @description: 远程调用/coupon/spubounds/save
     * @param: [spuBoundTo]
     * @return: void
     * @author 杨圣志
     * @date: 2023/10/16 15:16
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);
    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSpuReduction(@RequestBody SkuReductionTO skuReductionTO);
}
